import Layout from '@/layout/index.vue'

const asyncRoutes = [
  {
    path: '/statistics',
    name: 'Visualization',
    component: Layout,
    meta: {
      title: '数据统计',
      icon: 'nav-icon icon-visualization',
      resourceId: 'route:/web/data-statistic/',
    },
    children: [
      {
        path: '/statistics/device',
        name: 'StatisticsDevice',
        component: () => import('@/views/statistics/device.vue'),
        meta: {
          title: '设备统计',
          resourceId: 'route:/web/data-statistic/device-statistic/',
        },
      },
      {
        path: '/statistics/fund',
        name: 'StatisticsFund',
        component: () => import('@/views/statistics/fund.vue'),
        meta: {
          title: '资金统计',
          resourceId: 'route:/web/data-statistic/fund-statistic/',
        },
      },
      {
        path: '/statistics/order',
        name: 'StatisticsOrder',
        component: () => import('@/views/statistics/order.vue'),
        meta: {
          title: '订单统计',
          resourceId: 'route:/web/data-statistic/bill-statistic/', //todo
        },
      },
      {
        path: '/statistics/charge',
        name: 'VisualizationCharge',
        component: () => import('@/views/statistics/charge.vue'),
        meta: {
          title: '充电统计',
          resourceId: 'route:/web/data-statistic/chargingDataStatistic/',
        },
      },
      {
        path: '/statistics/user',
        name: 'VisualizationUser',
        component: () => import('@/views/statistics/user.vue'),
        meta: {
          title: '用户统计',
          resourceId: 'route:/web/data-statistic/appUser-statistic/',
        },
      },
      {
        path: '/statistics/report',
        name: 'OrderReport',
        component: () => import('@/views/statistics/statisticsForm.vue'),
        meta: {
          title: '统计报表',
          resourceId: 'route:/web/data-statistic/statistical-report/',
        },
      },
    ],
  },
]
export default asyncRoutes
